// Copyright 2011 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.


/**
 * @fileoverview The layer interface for the LayerManager.
 *
 * Public properties:
 *   enable - Enables the layer.
 *   disable - Disables the layer.
 *   getName - The module name.
 *   install - Install the layer.
 *   uninstall - Uninstall the layer.
 *
 * @author jasonstredwick@google.com (Jason Stredwick)
 */


goog.require('shellExtension.namespace');
goog.require('ModuleHelper');


/**
 * The namespace for the layer.
 * @type {!Object}
 * @private
 */
var namespace_ = shellExtension.namespace.create();


/**
 * Disables the layer.
 */
function disable() {
}


/**
 * Enables the layer.
 */
function enable() {
}


/**
 * Returns the name of the module.
 */
function getName() {
  return 'shellExtension.LayerManager';
}


/**
 * Installs the layer.
 */
function install() {
  ModuleHelper.addNamespace(namespace_, goog.global);
  console && console.log && console.log(getName() + ' namespace added.');
}


/**
 * Uninstalls the layer.
 */
function uninstall() {
}


ModuleHelper.addModuleData(disable, enable, getName, install, uninstall);

